<?php

namespace App\Models\News;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Artists\JoinArtist;

class ArtistsNew extends Model
{
    //
    use SoftDeletes;
	protected $connection = 'mysql_news';
	public static $status = ['0' => '待审核','1' => '审核未通过', '2'=> '审核通过'];

	public function getArtistAttribute()
	{
		return JoinArtist::where('artists_id', $this->artists_id)->first();
	}
	
    
}
